Luakit Documentation   /   Classes   /   widget:stack

Class widget:stack

Stack widget
This module is only available from the UI process Lua state.

The stack widget allows switching between a set of widgets, only one of which will be visible at a given time. Unlike the notebook widget, a stack does not show a tab bar, but switches children programmatically.

Methods

stack:pack (child)

Add a widget to the stack.

Parameters

  • child
    Type: widget
    The child widget to add.

Properties

stack.homogeneous

Type: boolean
Default: true
Read-write
Whether the stack allocates the same size for all children.

stack.visible_child

Type: widget
Read-write
The child widget currently visible in the stack.